package com.wonders.frame.entity;

import com.wonders.frame.core.entity.EntityTemplate;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * @author 顾乘瑞
 * @Description TODO
 * @Date 2020/8/18 1:53 PM
 */
@Table(name = "t_fact_column_info")
@Data
public class FactColumnInfo extends EntityTemplate {
    @OneToOne
    @JoinColumn(name = "basic_id", referencedColumnName = "id")
    private  FactBasicInfo basic;

    //字段类型 0：事实字段 1：维度字段
    @Column(name = "column_type")
    private Integer columnType;

    private String columnName;

    private String columnNameCn;

    //数据类型 0：数字 1：浮点型 2：字符 3：日期（年月日） 4：日期（年月日时分秒）
    @Column(name = "data_type")
    private Integer dataType;

    private Integer dataLength;

    //数据精度，浮点型有效
    @Column(name = "data_accuracy")
    private Integer dataAccuracy;

    private Integer isNull;

    private Integer nullOperator;

    private Integer commonOperator;


}
